/*
 *  Copyright 2025 Collate.
 *  Licensed under the Apache License, Version 2.0 (the "License");
 *  you may not use this file except in compliance with the License.
 *  You may obtain a copy of the License at
 *  http://www.apache.org/licenses/LICENSE-2.0
 *  Unless required by applicable law or agreed to in writing, software
 *  distributed under the License is distributed on an "AS IS" BASIS,
 *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *  See the License for the specific language governing permissions and
 *  limitations under the License.
 */
@import (reference) '../../../styles/variables.less';

.ant-tree.domain-selectable-tree {
  padding-top: 4px;
  .ant-tree-treenode {
    .ant-tree-node-content-wrapper {
      &.ant-tree-node-selected {
        background-color: @radio-button-checked-bg;
      }
    }
  }

  .load-more-node {
    border: none;
    border-radius: 0;
    &.ant-tree-treenode {
      &::before {
        display: none !important;
      }
    }

    .ant-tree-switcher {
      display: none !important;
    }

    .ant-tree-node-content-wrapper {
      cursor: default !important;
      padding: 0 !important;

      &:hover {
        background-color: transparent !important;
      }
    }
  }
}
.domain-selectable-tree-new {
  overflow: auto;
  height: auto;

  .ant-tree-treenode {
    .ant-tree-node-content-wrapper {
      &.ant-tree-node-selected {
        background-color: @radio-button-checked-bg;
      }
    }
  }
}

.all-domain-container {
  &.selected-node {
    background-color: @primary-1;

    &:hover {
      background: @primary-1;
    }
  }
}

.custom-domain-edit-select .ant-select-selection-placeholder,
.custom-domain-edit-select .ant-select-selection-search-input::placeholder {
  padding-left: @size-xs;
}
